﻿/// <reference path="/scripts/jQuery/jquery-1.4.1-vsdoc.js"/>
/// <reference path="/scripts/jQuery/jquery-ui-vsdoc_1.js"/>
/// <reference path="/scripts/Common/Globals.js"/>
/// <reference path="/scripts/Administration/Role.js"/>
/// <reference path="/scripts/Administration/User.js"/>

// this function is fired when the document is in the ready state.
function documentLoad() {

    $("table").attr("width", "100%");
    $("td").attr("width", "33%");
    $("input.menu").click(MenuButtonClick);
    $("input.menu").button().width("100%").height("60px").css("font-size", "2em");
}

function MenuButtonClick() {
    $(("#" + $(this).attr("section"))).dialog({
        autoOpen: true,
        closeOnEscape: true,
        draggable: false,
        height: '400',
        width: '500',
        title: "<span style='font-size:16px'>" + $(this).attr("value") + "</span>",
        modal: true,
        resizable: false,
        open: function (event, ui) {
            executeFunctionByName($(this).attr("target"), window);
        },
        buttons: { "Close": function () { $(this).dialog("close"); } }
    });
}



                   